#ifndef TREEPICTOOL_H
#define TREEPICTOOL_H

#include <QObject>
#include <QApplication>
#include <QDrag>
#include <QTreeWidget>
#include <QPointF>
#include <QMouseEvent>
#include <QMimeData>
#include <QListWidget>


class TreePicTool : public QTreeWidget
{
    Q_OBJECT
public:
    TreePicTool(QWidget* parent = nullptr);

protected:
    void mousePressEvent(QMouseEvent* event) override;
    void mouseMoveEvent(QMouseEvent* event) override;

private:
    QPointF m_pressPoint;   // 点击坐标
    bool m_isMoving;        // 是否移动
    QString m_taskName;     // 任务名
};

#endif // TREEPICTOOL_H
